import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class RandomSelectionStrategy implements SelectionStrategy {
    @Override
    public List<Paper> selectPapers(List<Paper> available, int quantity) {
        Collections.shuffle(available);
        if (available.size() <= quantity) {
            return new ArrayList<>(available);
        }
        return available.subList(0, quantity);
    }
}    